//
//  TTMenuCell.m
//  TTScrollMenus-Demo
//
//  Created by 赵国腾 on 16/5/16.
//  Copyright © 2016年 赵国腾. All rights reserved.
//

#import "TTMenuCell.h"

@interface TTMenuCell ()

/** 图片 */
@property (nonatomic, weak) IBOutlet UIImageView *iconView;

/** 名字label */
@property (nonatomic, weak) IBOutlet UILabel *nameLabel;

@end

@implementation TTMenuCell

+ (instancetype)menuCell {
    return [[NSBundle mainBundle] loadNibNamed:@"TTMenuCell" owner:nil options:nil].firstObject;
}

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setMenu:(TTMenu *)menu {
    _menu = menu;
    
    self.iconView.image = [UIImage imageNamed:menu.icon];
    self.nameLabel.text = menu.name;

}

@end
